cmake_minimum_required(VERSION 3.5)

project(BedWars LANGUAGES CXX C VERSION 1.0.0)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS OFF)

add_library(${PROJECT_NAME} SHARED 
    TeamType.h
    BedWars.cpp
    BedWars.h
    PlayerEvent.cpp
    PlayerEvent.h
    SubsystemBedWarsTerrain.cpp
    SubsystemBedWarsTerrain.h
    SignEvent.cpp
    SignEvent.h
    InventoryEvent.cpp
    InventoryEvent.h
    SubsystemBedWars.cpp
    SubsystemBedWars.h
    TerrainContentsGeneratorBedWars.cpp
    TerrainContentsGeneratorBedWars.h
    SubsystemBedWarsRotBlockBehavior.cpp
    SubsystemBedWarsRotBlockBehavior.h
    TerrainUpdaterBedWars.cpp
    TerrainUpdaterBedWars.h
    SubsystemBedWarsChestBlockBehavior.cpp
    SubsystemBedWarsChestBlockBehavior.h

    # TerrainSerializerBedWars.cpp
    # TerrainSerializerBedWars.h
)

target_link_libraries(${PROJECT_NAME} PUBLIC PocketSurvival)
